package com.ruoyi.server.api.wxlogin.entiy;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName UserModel
 * @Description TODO
 * @Author hbx
 * @Date 2023/6/5 17:06
 **/
@Data
public class AppUserModel {


    private Integer id;

    private String userName;

    private String imageId;

    private String userPhone;

    private String userBirthday;

    private Integer userSex;

    private Integer userType;

    private Integer prohibition;

    private Integer logOff;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//JsonFormat是出参格式化。
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//JsonFormat是出参格式化。
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    private Date updateTime;

    private String openId;

    private Integer age;

    private Integer cancellationId;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date cancellationTime;

    private String cancellationReason;

    private Integer recoverStatus;
    /**
     * 好友请求新消息数量
     */
    private Integer friendNewNum;


}
